
#include <vcl.h>
#pragma hdrstop

#include "Ball.h"
Ball::Ball():Mesh(){
        esfera=gluNewQuadric();
        vertexList= new VectorPoint3D *[nV];
        normal= new VectorPoint3D *[nN];
        face=new Face *[nF];

}

void Ball::dibuja(){
        glBegin(GL_LINE_LOOP);
        glColor3f(0.9,0.3,0.3);
        //gluQuadricDrawStyle(esfera,GLU_FILL);
        gluQuadricDrawStyle(esfera,GLU_LINE);
        //gluQuadricDrawStyle(esfera,GLU_POINT);
        gluSphere(esfera,1,25,25);
        glEnd();
}
Ball::~Ball(){
   gluDeleteQuadric(esfera);
 }
//---------------------------------------------------------------------------

#pragma package(smart_init)

 